package com.ourteam.product.ui.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-12-14 15:15:08 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class ProductUIListOption implements java.io.Serializable {

  public ProductUIListOption() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long listId;

  /** Attribute listId Be Seted Falg */
  private boolean listIdSetted = false;

  /** Attribute listId is Null Falg */
  private boolean listIdNull = false;

  /**
   * Get listId
   *
   * @return long
   */
  public final long getListId() {

    return listId;
  }

  /**
   * Set listId
   *
   * @param long
   */
  public final void setListId(long listId) {

    this.listId = listId;

    this.listIdSetted = true;

    this.setListIdNull(false);
  }

  /**
   * Get listId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isListIdSetted() {
    return this.listIdSetted;
  }

  /** Set listId Null */
  public final void setListIdNull() {

    this.listIdNull = true;
  }

  public final void setListIdNull(boolean aNullFlag) {

    this.listIdNull = aNullFlag;
  }

  public final boolean isListIdNull() {

    return this.listIdNull;
  }

  private String dataValue;

  /** Attribute dataValue Be Seted Falg */
  private boolean dataValueSetted = false;

  /** Attribute dataValue is Null Falg */
  private boolean dataValueNull = false;

  /**
   * Get dataValue
   *
   * @return String
   */
  public final String getDataValue() {

    if (isDataValueNull()) {
      return null;
    } else {
      return StringUtils.trim(dataValue);
    }
  }

  /**
   * Set dataValue
   *
   * @param String
   */
  public final void setDataValue(String dataValue) {

    this.dataValue = StringUtils.trim(dataValue);

    this.dataValueSetted = true;

    this.setDataValueNull(this.dataValue == null);
  }

  /**
   * Get dataValue Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDataValueSetted() {
    return this.dataValueSetted;
  }

  /** Set dataValue Null */
  public final void setDataValueNull() {

    this.dataValueNull = true;
  }

  public final void setDataValueNull(boolean aNullFlag) {

    this.dataValueNull = aNullFlag;
  }

  public final boolean isDataValueNull() {

    return this.dataValueNull;
  }

  private String dataLabel;

  /** Attribute dataLabel Be Seted Falg */
  private boolean dataLabelSetted = false;

  /** Attribute dataLabel is Null Falg */
  private boolean dataLabelNull = false;

  /**
   * Get dataLabel
   *
   * @return String
   */
  public final String getDataLabel() {

    if (isDataLabelNull()) {
      return null;
    } else {
      return StringUtils.trim(dataLabel);
    }
  }

  /**
   * Set dataLabel
   *
   * @param String
   */
  public final void setDataLabel(String dataLabel) {

    this.dataLabel = StringUtils.trim(dataLabel);

    this.dataLabelSetted = true;

    this.setDataLabelNull(this.dataLabel == null);
  }

  /**
   * Get dataLabel Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDataLabelSetted() {
    return this.dataLabelSetted;
  }

  /** Set dataLabel Null */
  public final void setDataLabelNull() {

    this.dataLabelNull = true;
  }

  public final void setDataLabelNull(boolean aNullFlag) {

    this.dataLabelNull = aNullFlag;
  }

  public final boolean isDataLabelNull() {

    return this.dataLabelNull;
  }

  private String dataIcon;

  /** Attribute dataIcon Be Seted Falg */
  private boolean dataIconSetted = false;

  /** Attribute dataIcon is Null Falg */
  private boolean dataIconNull = false;

  /**
   * Get dataIcon
   *
   * @return String
   */
  public final String getDataIcon() {

    if (isDataIconNull()) {
      return null;
    } else {
      return StringUtils.trim(dataIcon);
    }
  }

  /**
   * Set dataIcon
   *
   * @param String
   */
  public final void setDataIcon(String dataIcon) {

    this.dataIcon = StringUtils.trim(dataIcon);

    this.dataIconSetted = true;

    this.setDataIconNull(this.dataIcon == null);
  }

  /**
   * Get dataIcon Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDataIconSetted() {
    return this.dataIconSetted;
  }

  /** Set dataIcon Null */
  public final void setDataIconNull() {

    this.dataIconNull = true;
  }

  public final void setDataIconNull(boolean aNullFlag) {

    this.dataIconNull = aNullFlag;
  }

  public final boolean isDataIconNull() {

    return this.dataIconNull;
  }

  private int sortIndex;

  /** Attribute sortIndex Be Seted Falg */
  private boolean sortIndexSetted = false;

  /** Attribute sortIndex is Null Falg */
  private boolean sortIndexNull = false;

  /**
   * Get sortIndex
   *
   * @return int
   */
  public final int getSortIndex() {

    return sortIndex;
  }

  /**
   * Set sortIndex
   *
   * @param int
   */
  public final void setSortIndex(int sortIndex) {

    this.sortIndex = sortIndex;

    this.sortIndexSetted = true;

    this.setSortIndexNull(false);
  }

  /**
   * Get sortIndex Has Been Setted
   *
   * @return boolean
   */
  public final boolean isSortIndexSetted() {
    return this.sortIndexSetted;
  }

  /** Set sortIndex Null */
  public final void setSortIndexNull() {

    this.sortIndexNull = true;
  }

  public final void setSortIndexNull(boolean aNullFlag) {

    this.sortIndexNull = aNullFlag;
  }

  public final boolean isSortIndexNull() {

    return this.sortIndexNull;
  }

  private String lastModifyUser;

  /** Attribute lastModifyUser Be Seted Falg */
  private boolean lastModifyUserSetted = false;

  /** Attribute lastModifyUser is Null Falg */
  private boolean lastModifyUserNull = false;

  /**
   * Get lastModifyUser
   *
   * @return String
   */
  public final String getLastModifyUser() {

    if (isLastModifyUserNull()) {
      return null;
    } else {
      return StringUtils.trim(lastModifyUser);
    }
  }

  /**
   * Set lastModifyUser
   *
   * @param String
   */
  public final void setLastModifyUser(String lastModifyUser) {

    this.lastModifyUser = StringUtils.trim(lastModifyUser);

    this.lastModifyUserSetted = true;

    this.setLastModifyUserNull(this.lastModifyUser == null);
  }

  /**
   * Get lastModifyUser Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLastModifyUserSetted() {
    return this.lastModifyUserSetted;
  }

  /** Set lastModifyUser Null */
  public final void setLastModifyUserNull() {

    this.lastModifyUserNull = true;
  }

  public final void setLastModifyUserNull(boolean aNullFlag) {

    this.lastModifyUserNull = aNullFlag;
  }

  public final boolean isLastModifyUserNull() {

    return this.lastModifyUserNull;
  }

  private java.util.Date lastModifyTime;

  /** Attribute lastModifyTime Be Seted Falg */
  private boolean lastModifyTimeSetted = false;

  /** Attribute lastModifyTime is Null Falg */
  private boolean lastModifyTimeNull = false;

  /**
   * Get lastModifyTime
   *
   * @return java.util.Date
   */
  public final java.util.Date getLastModifyTime() {

    return lastModifyTime;
  }

  /**
   * Set lastModifyTime
   *
   * @param java.util.Date
   */
  public final void setLastModifyTime(java.util.Date lastModifyTime) {

    this.lastModifyTime = lastModifyTime;

    this.lastModifyTimeSetted = true;

    this.setLastModifyTimeNull(this.lastModifyTime == null);
  }

  /**
   * Get lastModifyTime Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLastModifyTimeSetted() {
    return this.lastModifyTimeSetted;
  }

  /** Set lastModifyTime Null */
  public final void setLastModifyTimeNull() {

    this.lastModifyTimeNull = true;
  }

  public final void setLastModifyTimeNull(boolean aNullFlag) {

    this.lastModifyTimeNull = aNullFlag;
  }

  public final boolean isLastModifyTimeNull() {

    return this.lastModifyTimeNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String remarks;

  /** Attribute remarks Be Seted Falg */
  private boolean remarksSetted = false;

  /** Attribute remarks is Null Falg */
  private boolean remarksNull = false;

  /**
   * Get remarks
   *
   * @return String
   */
  public final String getRemarks() {

    if (isRemarksNull()) {
      return null;
    } else {
      return StringUtils.trim(remarks);
    }
  }

  /**
   * Set remarks
   *
   * @param String
   */
  public final void setRemarks(String remarks) {

    this.remarks = StringUtils.trim(remarks);

    this.remarksSetted = true;

    this.setRemarksNull(this.remarks == null);
  }

  /**
   * Get remarks Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRemarksSetted() {
    return this.remarksSetted;
  }

  /** Set remarks Null */
  public final void setRemarksNull() {

    this.remarksNull = true;
  }

  public final void setRemarksNull(boolean aNullFlag) {

    this.remarksNull = aNullFlag;
  }

  public final boolean isRemarksNull() {

    return this.remarksNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof ProductUIListOption) == false) {
      return false;
    }
    ProductUIListOption other = (ProductUIListOption) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("listId=");
    buffer.append(this.listId);

    buffer.append("dataValue=");
    buffer.append(this.dataValue);

    buffer.append("dataLabel=");
    buffer.append(this.dataLabel);

    buffer.append("dataIcon=");
    buffer.append(this.dataIcon);

    buffer.append("sortIndex=");
    buffer.append(this.sortIndex);

    buffer.append("lastModifyUser=");
    buffer.append(this.lastModifyUser);

    buffer.append("lastModifyTime=");
    buffer.append(this.lastModifyTime);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("remarks=");
    buffer.append(this.remarks);

    buffer.append("]");

    return buffer.toString();
  }
}
